{extend name="base" /}
{block name="seo"}
<title>{$site.name} - {$site.title}</title>
<meta name="keywords" content="{$site.keywords}">
<meta name="description" content="{$site.description}">
{/block}
{block name="css"}
<link href="__HOME__/css/index.css" rel="stylesheet" type="text/css">
{/block}
{block name="body"}
<section>
    <div class="container">
        <div class="index-ph">
            <ul class="layui-clear">

            </ul>
        </div>
        {:hooks('adplan.ad_show',['alias'=>'main'])}
        {:hooks('adplan.ad_show',['alias'=>'textad'])}
        <div class="index-main layui-clear">
            <div class="index-news fl">
                <div class="title">
                    最近更新 <font>+ {$todayUpdateNum}</font>
                </div>
                <div class="index-news-list">
                    {volist name="newArticles" id="v" key="k"}

                    <ul class="layui-clear layui-anim layui-anim-fadein new-list-{$k} block" {if $k neq 1}style="display: none;"{/if}>
                        {volist name="v" id="vo"}
                        <li>
                        <i>{if($vo['is_ad'])}<img src="__HOME__/images/ad.png">{else/}<img class="lazy" data-original="{$vo.cover_img}">{/if}</i>
                        <font <?php if($vo['is_ad'] || date('m-d',strtotime($vo['publish_time']))==date('m-d')) echo('style="color: #fd2b2b;"'); ?>>{if $vo.is_ad}广告{else /}{$vo.publish_time|substr=8,2}日{/if}</font>
                        <a href="{$vo.url}" target="_blank" class="tit" style="{if $vo.title_color}color:{$vo.title_color};{/if}{if $vo.is_bold}font-weight:bold;{/if}">{if $vo['is_essence']}<img src="__HOME__/images/recommend.gif" />{/if} {$vo.title}</a>
                        <span><a href="{$vo.url}" target="_blank">查看</a></span>
                    </li>
                        {/volist}
                    </ul>
                    {/volist}
                    <div class="page layui-clear">
                        {volist name="newArticles" id="vo" key="kk"}
                          <a href="javascript:void(0)" {if $kk eq 1}class="current"{/if}>{$kk}</a>
                        {/volist}
                    </div>
                </div>
            </div>
            <div class="index-info fr">
                <div class="index-soft">
                    <div class="title">
                        {$homepage_plate3.name|default=''}
<!--                        {volist name="homepage_plate3.list" id="v"}-->
<!--                        <a>{$v.category}</a>-->
<!--                        {/volist}-->
                    </div>
                    <div class="list">
                        {volist name="homepage_plate3.list" id="v"}
                        <ul>
                            {volist name="v.list" id="vo"}
                            <li>
                                <a href="{$vo.url}" target="_blank">
                                   <img  class="fl lazy" src="{$vo.cover_img}"  onerror="this.src='__HOME__/images/no-img1.png';" alt="{$vo.title}">
                                    <h3>{$vo.title}</h3>
                                    <span><i>★★★★☆</i> / 站长推荐  <b style="line-height:23px;float: right">{$vo.publish_time|substr=0,10}</b></span>
                                </a>
                            </li>
                            {/volist}
                        </ul>
                        {/volist}
                    </div>
                </div>
                {if sysconfig('article.home_carousel_open') eq 1}
                <div class="index-login">
                    <div class="layui-carousel" id="index-lb">
                        <div carousel-item="">
                            {volist name="carousel" id="vo"}
                            <div><a target="_blank" href="{$vo.url}"><img class="lazy" alt="{$vo.title}" src="{$vo.cover_img}" onerror="this.src='__HOME__/images/no-img1.png';"></a></div>
                            {/volist}
                        </div>
                    </div>
                </div>
                {/if}
            </div>
        </div>
        <div class="index-list">
            <div class="list-soft">
                <h2 class="title">
                    {$homepage_plate1.name|default=''}
                </h2>
                <div class="list-soft-main layui-clear">
                    <div class="list-soft-tab fl">
                        <div class="type layui-clear">
                            {volist name="homepage_plate1.list" id="v"}
                            <a>{$v.category}</a>
                            {/volist}
                        </div>
                        <div class="list-soft-plate">

                            {volist name="homepage_plate1.list" id="v"}
                            <div class="plate-list">
                                <ul class="layui-clear">
                                    {volist name="v.list" id="vo"}
                                    <li>
                                        <div class="fl">
                                            <img alt="{$vo.title}" class="lazy" data-original="{$vo.cover_img}" style="">
                                        </div>
                                        <div class="fr">
                                            <h3><a href="{$vo.url}" target="_blank" title="{$vo.title}">{$vo.title}</a></h3>
                                            <p>{$vo.publish_time|substr=5,5}<span>|</span><i>★★★☆☆</i></p>
                                            <div class="down">
                                                <a href="{$vo.url}" target="_blank">查看</a>
                                            </div>
                                        </div>
                                    </li>
                                    {/volist}

                                </ul>
                            </div>
                            {/volist}

                        </div>
                    </div>
                    <div class="hot-soft fr">
                        <div class="type layui-clear">
                            <a class="hover">本周热门</a><a>当月最热</a><i></i>
                        </div>
                        <div class="list-soft-plate">
                            <div class="soft-plate layui-clear">
                                <div class="plate-list">
                                    <ul class="layui-clear">
                                        {volist name="viewTopWeek" id="vo"}
                                        <li class="">
                                            <em>{$key+1}</em>
                                            <a href="{$vo.url}" title="{$vo.url}" class="txt tit" target="_blank">{$vo.title}</a>
                                            <div class="layui-clear"></div>
                                            <p>
                                                <a href="{$vo.url}" class="img" target="_blank">
                                                    <img src="{$vo.cover_img}" onerror="this.src='__HOME__/images/no-img1.png';" alt="{$vo.title}">
                                                </a>
                                                <span><i> ★★★☆☆</i><a href="{$vo.url}" target="_blank">查看</a></span>
                                            </p>
                                        </li>
                                        {/volist}
                                    </ul>
                                </div>
                                <div class="plate-list">
                                    <ul class="layui-clear">
                                        {volist name="viewTopMonth" id="vo"}
                                        <li class="">
                                            <em>{$key+1}</em>
                                            <a href="{$vo.url}" title="{$vo.url}" class="txt tit" target="_blank">{$vo.title}</a>
                                            <div class="layui-clear"></div>
                                            <p>
                                                <a href="{$vo.url}" class="img" target="_blank">
                                                    <img src="{$vo.cover_img}" onerror="this.src='__HOME__/images/no-img1.png';" alt="{$vo.title}">
                                                </a>
                                                <span><i> ★★★☆☆</i><a href="{$vo.url}" target="_blank">查看</a></span>
                                            </p>
                                        </li>
                                        {/volist}

                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="list-article">
                <h2 class="title">
                    {$homepage_plate2.name|default=''}
                </h2>
                <div class="list-article-main layui-clear">
                    <div class="list-article-tab fl">
                        <div class="type layui-clear">
                            {volist name="homepage_plate2.list" id="v"}
                            <a>{$v.category}</a>
                            {/volist}
                        </div>
                        <div class="list-article-plate">
                            {volist name="homepage_plate2.list" id="v"}
                            <div class="plate-list">
                                <ul class="fl">
                                    {volist name="v.list" id="vo" length='5'}
                                    <li><a href="{$vo.url}" class="layui-clear" target="_blank">
                                        <div class="img">
                                            <img class="lazy" data-original="{$vo.cover_img}" alt="{$vo.title}">
                                        </div>
                                        <span>{$vo.title}</span></a>
                                    </li>
                                    {/volist}
                                </ul>
                                <ul class="fr">
                                    {volist name="v.list" id="vo"}
                                    <li>
                                            <a href="{$vo.url}" target="_blank">{$vo.title}</a><span class="">{$vo.publish_time|substr=0,10}</span>
                                    </li>
                                    {/volist}
                                </ul>
                            </div>
                            {/volist}
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="index-link">
            <div class="title">友情链接 <span>{:sysconfig('friendly_link.desc')}</span>
<!--                {if sysconfig('friendly_link.self_apply')}<a target="_blank" href="{:url('index/friendlyLink/apply')}" style="font-size:15px;float:right">申请友链</a>{/if}-->
            </div>
            <ul class="layui-clear">
                {volist name="friendlinks" id="vo"}
                <li><a href='{$vo.link}' target='_blank' {if $vo.nofollow}rel="nofollow"{/if}>{$vo.title}</a> </li>
                {/volist}
            </ul>
        </div>
    </div>
</section>
{/block}
{block name="js"}
<script type="text/javascript" src="__HOME__/js/index.js"></script>
{/block}